package org.example.gxpt.common.context;

public class LoginContext {

    public static ThreadLocal<Long> threadLocal = new ThreadLocal<>();

    public static void setCurrentRole(Long role) {
        threadLocal.set(role);
    }

    public static Long getCurrentRole() {
        return threadLocal.get();
    }

    public static void removeCurrentRole() {
        threadLocal.remove();
    }
}
